namespace HexagonWeb.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class More : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Seats",
                c => new
                    {
                        ID = c.Int(nullable: false, identity: true),
                        AirlineID = c.Int(nullable: false),
                        TopNum = c.Int(nullable: false),
                        MidNum = c.Int(nullable: false),
                        LowNum = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.ID)
                .ForeignKey("dbo.Airlines", t => t.AirlineID, cascadeDelete: true)
                .Index(t => t.AirlineID);
            
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.Seats", "AirlineID", "dbo.Airlines");
            DropIndex("dbo.Seats", new[] { "AirlineID" });
            DropTable("dbo.Seats");
        }
    }
}
